package com.smartlbs.enums;

/**
 * 性别枚举 
 *
 *
 */
public enum SexEnums {
	//0-保密 1-男 2-女
    SECURITY(0, "保密"), MALE(1, "男"), FEMALE(2, "女");
    
    private Integer value;
    private String memo;
    
    private SexEnums(Integer value, String memo) {
    	this.value = value;
    	this.memo = memo;
    }
    
    public Integer getValue(){
    	return value;
    }
    
	public String getMemo() {
		return memo;
	}

	public static String getMemoByValue(Integer value){
		for(SexEnums e : SexEnums.values()){
			if(e.getValue() == value){
				return e.getMemo();
			}
		}
		return "";
	}
}